import babel from '@rollup/plugin-babel'
import json from '@rollup/plugin-json';
import terser from '@rollup/plugin-terser';
import postcss from 'rollup-plugin-postcss'
import typescript from 'rollup-plugin-typescript2'

export default {
  input: "src/index.ts",
  output: {
    file: "dist/index.js",
    format: "iife"//CommonJS; cjs、es、amd、iife、umd
  },
  plugins: [babel(), json(), postcss(),terser(),typescript()]
}
